package com.jinhongone.pattern.behavior.state.after;

/**
 * @author jinho
 * @className Test
 * @description 测试类
 * @date 2025/4/16 15:35
 */
public class Test {
    public static void main(String[] args) {
        //创建环境对象，设置电梯状态，操作电梯
        Context context = new Context();
        context.setLiftState(Context.STOPPING_STATE);
        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
